<template>
  <div>
    <mt-swipe :show-indicators="true">
      <mt-swipe-item v-for="item in list" :key="item.src">
        <img :src="item.src" :alt="item.src" srcset :class="{'height-full': isHightFull}">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>
export default {
  props: ['list', 'isHightFull']
}

</script>

<style lang="scss" scoped>
.mint-swipe {
  // 设置轮播图默认高度
  height: 287px;

  img {
    // 设置轮播图宽度为百分之百，高度自适应
    width: 100%;
  }
}

.height-full {
  height: 100%;
}
</style>
